import request from '../utils/request'
/**
 * 
 * @param {求职效果分析接口} query 
 */
/** 投递转换率 */
export const deliverConversion = (query) => {
  return request.post("/zsrencai/api/sys/admin/resume-statistics/deliver/conversion", query)
}
/** 人才库曝光率 */
export const resumeExposure = (query) => {
  return request.post("/zsrencai/api/sys/admin/resume-statistics/person/resume/exposure", query)
}
/** 人才库面邀率 */
export const resumeInterview = (query) => {
  return request.post("/zsrencai/api/sys/admin/resume-statistics/person/resume/interview", query)
}

/** 人才库聊天率 */
export const chartPerson = (query) => {
  return request.post("/zsrencai/api/sys/admin/chat/get/deliver/chat/rate/count", query)
}
/**
 * 人才构成统计接口
 */

/**简历总数，简历活跃数，性别占比 */
export const dynamicSex = () => {
  return request.get("/zsrencai/api/sys/admin/resume-statistics/count/dynamic-sex")
}
/** 简历求职者年龄占比 */
export const sexRate = () => {
  return request.get("/zsrencai/api/sys/admin/resume-statistics/sex-rate")
}
/** 简历求职者学历占比 */
export const educationRate = () => {
  return request.get("/zsrencai/api/sys/admin/resume-statistics/education-rate")
}
/** 求职者分布 */
export const distribute = () => {
  return request.get("/zsrencai/api/sys/admin/resume-statistics/distribute")
}
/** 求职者行业前10 */
export const tradeTopTen = () => {
  return request.get("/zsrencai/api/sys/admin/resume-statistics/trade/top-ten")
}
/** 求职者职位前10 */
export const jobTopTen = () => {
  return request.get("/zsrencai/api/sys/admin/resume-statistics/job/top-ten")
}
/** 求职者薪酬占比 */
export const salary = () => {
  return request.get("/zsrencai/api/sys/admin/resume-statistics/salary")
}


/** 招聘效果分析职位类别统计 */

export const categoryStatistics = (query) => {
  return request.post("/zsrencai/api/sys/admin/analysis/of/recruitment/effect/category/statistics", query)
}

/** 招聘效果分析行业职位类别统计 */

export const tradeStatistics = (query) => {
  return request.post("/zsrencai/api/sys/admin/analysis/of/recruitment/effect/trade/statistics", query)
}

/** 招聘效果分析职位平均曝光次数 */

export const exposure = (query) => {
  return request.post("/zsrencai/api/sys/admin/analysis/of/recruitment/effect/exposure", query)
}
/** 招聘效果分析职位平均浏览次数 */

export const browse = (query) => {
  return request.post("/zsrencai/api/sys/admin/analysis/of/recruitment/effect/browse", query)
}

/** 招聘效果分析职位平均投递次数 */

export const deliver = (query) => {
  return request.post("/zsrencai/api/sys/admin/analysis/of/recruitment/effect/deliver", query)
}
/** 招聘效果分析职位企业性质 */

export const companyNature = (query) => {
  return request.post("/zsrencai/api/sys/admin/analysis/of/recruitment/effect/company/nature", query)
}
/** 招聘效果分析职位企业性质投递量 */

export const companyNatureDeliver = (query) => {
  return request.post("/zsrencai/api/sys/admin/analysis/of/recruitment/effect/company/nature-deliver", query)
}
/** 招聘效果分析职位产业 */

export const companyIndustry = (query) => {
  return request.post("/zsrencai/api/sys/admin/analysis/of/recruitment/effect/company/industry", query)
}
/** 招聘效果分析职位产业 */

export const companyIndustryDeliver = (query) => {
  return request.post("/zsrencai/api/sys/admin/analysis/of/recruitment/effect/company/industry-deliver", query)
}